import request from '@/utils/httpRequest'

export function getConfig () {
  return request({
    url: request.adornUrl('/sys/config/getWechatConfig'),
    method: 'get'
  })
}

export function saveConfig (data) {
  return request({
    url: request.adornUrl('/sys/config'),
    method: 'post',
    data
  })
}

export function saveIndexInfoConfig (data) {
  return request({
    url: request.adornUrl('/sys/config/saveIndexInfoConfig'),
    method: 'post',
    data
  })
}

export function getIndexInfoConfig () {
  return request({
    url: request.adornUrl('/sys/config/getIndexInfoConfig'),
    method: 'get'
  })
}

export function saveMessageTem (data) {
  return request({
    url: request.adornUrl('/sys/config/saveMessageTem'),
    method: 'post',
    data
  })
}

export function getMessateTemConfig () {
  return request({
    url: request.adornUrl('/sys/config/getMessateTemConfig'),
    method: 'get'
  })
}
